package com.ray.test.proxy;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author bo shen
 * @Description: 方法返回结果
 * @Class: MethodResult
 * @Package com.ray.test.proxy
 * @date 2019/12/19 18:55
 * @company <p>杭州传化陆鲸科技有限公司</p>
 * @updateRecord time(修改时间)  author(修改人)   desc(修改内容)
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MethodResult implements Serializable {

    /**类***/
    private Class<?> clazz;
    /**方法**/
    private String name;
    /***顺序*/
    private  Integer index;

    private Object result;




    public String getKey(){
        return  String.format("%s:%s:%d",clazz.getName(),name,index);
    }
}
